//
//  NetInterfaceMacro.h
//  BabyNow
//
//  Created by 刘泽琛 on 14-3-28.
//  Copyright (c) 2014年 iMobile. All rights reserved.
//

#ifndef BabyNow_NetInterfaceMacro_h
#define BabyNow_NetInterfaceMacro_h


// -------------------  新请求参数 ↓ ------------------------

#define kContent                @"content"


// -------------------  新请求参数 ↑ ------------------------


// 请求参数定义


/**
*                              帐号
 */
#define kAccount               @"account"

/**
*                              密码
 */
#define kPassword              @"password"

/**
*                              页码
 */
#define kPageno                @"pageno"

#define kPageNo                @"pageNo"

/**
*                              动态编号
 */
#define kPostId                @"postId"

/**
*                              动态类型
 */
#define kPostType              @"postType"

// add by jason yan 2014-07-26
#define kDynamicType           @"dynamicType"

/**
*                              回复内容
 */
#define kReplCont              @"replCont"

/**
*                              动态标题
 */
#define kPostSubj              @"postSubj"

/**
*                              多文件编号
 */
#define kFileIds               @"fileIds"

/**
*                              单文件编号
 */
#define kFileId                @"fileId"

/**
*                              文件编号分割符
 */
#define SEPERATOR_FOR_FILE_IDS @"|"

/**
 *                              用户编号
 */
#define kUserId                 @"userId"

/**
 *      `                       聊天信息
 */
#define kChatInfo               @"chatInfo"

/**
 *                              聊天对象信息
 */
#define kUserInfo               @"userInfo"

/**
 *                              聊天内容
 */
#define kChatCont               @"chatCont"

/**
 *                              美食编号
 */
#define kFoodId                 @"foodId"

/**
 *                              活动编号
 */
#define kActiId                 @"actiId"

/**
 *                              发布内容
 */
#define kNotiCont               @"notiCont"


/**
*                              新动态数量
 */
#define kPostNumb              @"postNumb"

/**
*                              新通知数量
 */
#define kNotiNumb              @"notiNumb"

/**
*                              新幼儿园信息数量
 */
#define kSchoNumb              @"schoNumb"

/**
*                              新通讯录信息数量
 */
#define kMessageNumb           @"messNumb"

/**
*                              新我的信息数量
 */
#define kmeNumb                @"meNumb"

/**
*                              通知id
 */
#define kNotiId                @"notiId"

/**
*                              回复内容
 */
#define kReplCont              @"replCont"

/**
 *                             发布内容
 */
#define kNotiSubj              @"notiSubj"

/**
 *                             美食标题
 */
#define kFoodSubj              @"foodSubj"

/**
 *                             美食内容
 */
#define kFoodCont              @"foodCont"

/**
 *                             活动标题
 */
#define kActiSubj              @"actiSubj"

/**
 *                             活动内容
 */
#define kActiCont              @"actiCont"

/**
 *                             园所编号
 */
#define kBrieId                @"brieId"

/**
 *                             园所简介内容
 */
#define kBrieCont              @"brieCont"

/**
 *                             园长信箱编号
 */
#define kSuggId                 @"suggId"

/**
 *                             园长信箱发布标题
 */
#define kSuggSubj              @"suggSubj"

/**
 *                             园长信箱发布内容
 */
#define kSuggCont              @"suggCont"

/**
 *                             宝宝编号
 */
#define kChilId                @"chilId"

/**
 *                             勋章编号
 */
#define kMedaId                @"medaId"

/**
 *                             周评内容
 */
#define kEvalCont              @"evalCont"

/**
 *                             奖品编号
 */
#define kPrizId                @"prizId"

/**
 *                             积分数量
 */
#define kPoinNumb              @"poinNumb"

/**
 *                             宝宝生日
 */
#define kBirtDate              @"birtDate"

/**
 *                             毕业院校
 */
#define kGradUniv              @"gradUniv"

/**
 *                             学历
 */
#define kEduc                  @"educ"

/**
 *                             教育格言
 */
#define kSign                  @"sign"

/**
 *                             电话号码
 */
#define kPhon                  @"phon"

/**
 *                             新密码
 */
#define kNewPass               @"newPass"

/**
 *                             邮箱
 */
#define kMail                  @"mail"

/**
 *                             标识
 */
#define kFlg                   @"flg"

/**
 *                             勋章总数
 */
#define kMedaCoun              @"medaCoun"

/**
 *                             周评总数
 */
#define kEvalCoun              @"evalCoun"

/**
 *                             家长首页发布的信息
 */
#define kFavoInfo              @"favoInfo"

// 响应参数定义

#define kInfo                  @"Info"
#define kinfo                  @"info"
#define kPareInfo              @"pareInfo"
#define kTechInfo              @"techInfo"
#define kSessInfo              @"sessInfo"
#define kErrorCode             @"errorCode"
#define kErrorMessage          @"errorMessage"


/**
 *  BabyNow Domain
 */
#warning 测试用接口，发布前修改成正式的
//#define BN_DOMAIN @"???"
#define BN_DOMAIN @"112.124.56.101:8080"
// add by jason yan 2014-07-26
#define NEW_BN_DOMAIN @"112.124.56.101:8088"

/**
 *  BabyNow URL
 */
#define BN_URL [@"http://" stringByAppendingString:BN_DOMAIN]
// add by jason yan 2014-07-26
#define NEW_BN_URL [@"http://" stringByAppendingString:NEW_BN_DOMAIN]

/**
 *  网络接口地址
 */
#define NET_IF_DOMAIN   [BN_URL stringByAppendingString:@"/mobile/%@"]

// add by jason yan 2014-07-26
#define COMMON_NET_IF_DOMAIN [NEW_BN_URL stringByAppendingString:@"/handinfo/%@"]
#define NEW_NET_IF_DOMAIN [NEW_BN_URL stringByAppendingString:@"/handinfo/service.htm"]

// a
#define kA            @"a"

// params
#define kParams       @"params"



/**
 *  登录
 *
 *  params:account（13100001234）/password（1）
 */
#define NET_IF_LOGIN    [NSString stringWithFormat:NET_IF_DOMAIN,@"mobile-index!login.action"]

/**
 *  标签栏通知数量
 *
 *  params:account/password
 */
#define NET_IF_NEW_NOTIFICATION [NSString stringWithFormat:NET_IF_DOMAIN,@"mobile-index!getNews.action"]

// ################## ------- 动态模块 ↓ --------

/**
 *  动态列表
 *
 *  params:account/password/pageno
 */
#define NET_IF_DYNAMIC_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"post-info!postList.action"]
// add by jason yan 2014-07-26
#define NEW_NET_IF_DYNAMIC_LIST @"dynamicList"

/**
 *  动态详情
 *
 *  params:account/password/postId
 */
#define NET_IF_DYNAMIC_DETAIL [NSString stringWithFormat:NET_IF_DOMAIN,@"post-info!postDetail.action"]

/**
 *  动态回复处理
 *
 *  params:account/password/postId/replCont（回复内容）
 */
#define NET_IF_DYNAMIC_REPLY [NSString stringWithFormat:NET_IF_DOMAIN,@"post-info!postRepl.action"]

#define NET_IF_DYNAMIC_PUBLISH_UPLOAD_FILE [BN_URL stringByAppendingString:@"/servlet/Upload"]


/**
 *  动态发布处理
 *
 *  params:account/password/postSubj(回复内容)/fileIds(文件sid)
 */
#define NET_IF_DYNAMIC_PUBLISH [NSString stringWithFormat:NET_IF_DOMAIN,@"post-info!postSend.action"]

// add by jason yan 2014-07-27
#define NEW_NET_IF_PUBLISH_DYNAMIC [NSString stringWithFormat:COMMON_NET_IF_DOMAIN,@"dynamicAdd.htm"]


/**
 *  动态删除处理
 *
 *  params:account/password/postId（动态id）
 */
#define NET_IF_DYNAMIC_DELETE [NSString stringWithFormat:NET_IF_DOMAIN,@"post-info!postRemo.action"]

/**
 *  动态赞处理
 *
 *  params:account/password/postId（动态id）
 */
#define NET_IF_DYNAMIC_SUPPORT [NSString stringWithFormat:NET_IF_DOMAIN,@"post-info!postPrai.action"]


/**
 * 动态收藏处理
 *
 *  params:account/password/postId（动态id）
 */
#define NET_IF_DYNAMIC_COLLECT [NSString stringWithFormat:NET_IF_DOMAIN,@"post-info!postFavo.action"]


// ################## ------- 动态模块 ↑ --------

// ################## ------- 通知模块 ↓ --------

/**
 *  通知列表
 *
 *  params:account/password/pageno
 */
#define NET_IF_NOTICE_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"noti-info!notiList.action"]

/**
 *  通知详情
 *
 *  params:account/password/notiId
 */
#define NET_IF_NOTICE_DETAIL [NSString stringWithFormat:NET_IF_DOMAIN,@"noti-info!notiDetail.action"]

/**
 *  通知回复
 *
 *  params:account/password/notiId/replCont
 */
#define NET_IF_NOTICE_REPLY [NSString stringWithFormat:NET_IF_DOMAIN,@"noti-info!notiRepl.action"]

/**
 *  发布通知
 *
 *  params:account/password/notiSubj/fileIds
 */
#define NET_IF_NOTICE_POST  [NSString stringWithFormat:NET_IF_DOMAIN,@"noti-info!notiSend.action"]
// add by jason yan 2014-07-29
#define NEW_NET_IF_PUBLISH_NOTICE [NSString stringWithFormat:COMMON_NET_IF_DOMAIN,@"noticeAdd.htm"]

/**
 *  删除通知
 *
 *  params:account/password/notiId
 */
#define NET_IF_NOTICE_DELETE [NSString stringWithFormat:NET_IF_DOMAIN,@"noti-info!notiRemo.action"]

/**
 *  赞通知
 *
 *  params:account/password/notiId
 */
#define NET_IF_NOTICE_SUPPORT [NSString stringWithFormat:NET_IF_DOMAIN,@"noti-info!notiPrai.action"]

/**
 *  收藏通知
 *
 *  params:account/password/notiId
 */
#define NET_IF_NOTICE_COLLECT [NSString stringWithFormat:NET_IF_DOMAIN,@"noti-info!notiFavo.action"]

// ################## ------- 通知模块 ↑ --------

//

// ################## ------- 聊聊模块 ↓ --------

/**
 *  联系人列表
 *
 *  params:account/password
 */
#define NET_IF_CHAT_PERSON_LIST    [NSString stringWithFormat:NET_IF_DOMAIN,@"chat-info!personList.action"]

/**
 *  会话列表
 *
 *  params:account/password
 */
#define NET_IF_CHAT_CONTANT_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"chat-info!chatList.action"]


/**
 * 聊天记录详情
 *
 * params:account/password/userId/pageNo
 */
#define NET_IF_CHAT_DETAIL_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"chat-info!chatDetail.action"]

/**
 *  发送聊天信息
 *
 *  params:account/password/userId/chatCont
 */
#define NET_IF_SEND_CHAT_CONTENT [NSString stringWithFormat:NET_IF_DOMAIN,@"chat-info!chatSend.action"]

// ################## ------- 聊聊模块 ↑ --------

// ################## ------- 我的幼儿园模块 ↓ --------

/**
 *  幼儿园美食列表
 *
 *  params:account/password/pageno
 */
#define NET_IF_KG_FOOD_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"food-info!foodList.action"]

/**
 *  幼儿园美食详情
 *
 *  params:account/password/foodId
 */
#define NET_IF_KG_FOOD_DETAIL [NSString stringWithFormat:NET_IF_DOMAIN,@"food-info!foodDeta.action"]

/**
 *  幼儿园美食发布
 *
 *  params:account/password/foodSubj/foodCont/fileIds
 */
#define NET_IF_KG_FOOD_SEND [NSString stringWithFormat:NET_IF_DOMAIN,@"food-info!foodSend.action"]

/**
 *  幼儿园美食删除
 *
 *  params:account/password/foodId
 */
#define NET_IF_KG_FOOD_DELETE [NSString stringWithFormat:NET_IF_DOMAIN,@"food-info!foodRemo.action"]

/**
 *  幼儿园校园活动列表
 *
 *  param:account/password/pageno
 */
#define NET_IF_KG_ACTION_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"acti-info!actiList.action"]

/**
 *  幼儿园校园活动详情
 *
 *  param:account/password/actiId
 */
#define NET_IF_KG_ACTION_DETAIL [NSString stringWithFormat:NET_IF_DOMAIN,@"acti-info!actiDeta.action"]

/**
 *  幼儿园校园活动发布
 *
 *  param:account/password/actiSubj/actiCont/fileIds
 */
#define NET_IF_KG_ACTION_SEND [NSString stringWithFormat:NET_IF_DOMAIN,@"acti-info!actiSend.action"]

/**
 *  幼儿园校园活动删除
 *
 *  param:account/password/actiId
 */
#define NET_IF_KG_ACTION_DELETE [NSString stringWithFormat:NET_IF_DOMAIN,@"acti-info!actiRemo.action"]

/**
 *  园所简介
 *
 *  param:account/password
 */
#define NET_IF_KG_BRIE_INFO [NSString stringWithFormat:NET_IF_DOMAIN,@"brie-info!brieDeta.action"]

/**
 *  发布园所简介
 *
 *  param:account/password/brieCont/fileIds
 */
#define NET_IF_KG_BRIE_SEND [NSString stringWithFormat:NET_IF_DOMAIN,@"brie-info!brieSend.action"]

/**
 *  更新园所简介
 *  
 *  param:account/password/brieId,brieCont,fileIds
 */
#define NET_IF_KG_BRIE_UPDATE [NSString stringWithFormat:NET_IF_DOMAIN,@"brie-info!brieUpda.action"]

/**
 *  园长信箱列表
 *  
 *  param:account/password/pageno
 */
#define NET_IF_KG_SUGGEST_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"sugg-info!suggList.action"]

/**
 *  园长信箱详情
 *
 *  param:account/password/suggId
 */
#define NET_IF_KG_SUGGEST_DETAIL [NSString stringWithFormat:NET_IF_DOMAIN,@"sugg-info!suggDeta.action"]

/**
 *  园长信箱发布
 *
 *  param:account/password/suggSubj/suggCont/fileIds
 */
#define NET_IF_KG_SUGGEST_SEND [NSString stringWithFormat:NET_IF_DOMAIN,@"sugg-info!suggSend.action"]

/**
 *  园长信箱删除
 *
 *  param:account/password/suggId
 */
#define NET_IF_KG_SUGGEST_REMOVE [NSString stringWithFormat:NET_IF_DOMAIN,@"sugg-info!suggRemo.action"]


// ################## ------- 我的幼儿园模块 ↑ --------

// ################## ------- 我的主页模块 ↓ --------

/**
 *  家长首页
 *
 *  param:account/password
 */
#define NET_IF_USER_INFO_PARENT_HOME_INFO [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!favoList.action"]


/**
 *  勋章详细
 *
 *  param:account/password
 */
#define NET_IF_USER_INFO_MEDAL_DETAIL [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!medaDeta.action"]

/**
 *  班级宝宝列表
 *
 *  param:account/password
 */
#define NET_IF_USER_INFO_CHILD_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!chilList.action"]

/**
 *  勋章类型列表
 *
 *  param:account/password/chilId
 */
#define NET_IF_USER_INFO_MEDAL_TYPE_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!medaList.action"]

/**
 *  颁发勋章
 *
 *  param:account/password/chilId/medaId
 */
#define NET_IF_USER_INFO_SEND_MEDAL [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!medaSend.action"]

/**
 *  周评列表
 *
 *  param:account/password/pageno/chilId
 */
#define NET_IF_USER_INFO_EVAL_LIST  [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!evalList.action"]

/**
 *  发布周评
 *
 *  param:account/password/chilId/evalCont
 */
#define NET_IF_USER_INFO_EVAL_SEND  [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!evalSend.action"]

/**
 *  老师首页
 *
 *  params:account/password
 */
#define NET_IF_USER_INFO_TEACHER_HOME_INFO [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!poinList.action"]

/**
 *  积分列表
 *
 *  params:account/password
 */
#define NET_IF_USER_INFO_PRIZ_LIST [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!prizList.action"]

/**
 *  积分兑换
 *
 *  params:account/password/prizId/poinNumb
 */
#define NET_IF_USER_INFO_POIN_EXCH [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!poinExch.action"]

/**
 *  积分规则
 *  
 *  params:account/password
 */
#define NET_IF_USER_INFO_POIN_RULE [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!poinRule.action"]

/**
 *  个人资料显示
 *
 *  params:account/password
 */
#define NET_IF_USER_INFO_USER_INFO [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!userDeta.action"]

/**
 *  个人资料修改
 *
 *  params:account/password/birtDate/gradUniv/educ/sign/phon
 */
#define NET_IF_USER_INFO_UPDATA_USER_INFO [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!userUpda.action"]

/**
 *  密码取得
 *
 *  param:account/passowrd
 */
#define NET_IF_USER_INFO_PASS_DETA [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!passDeta.action"]

/**
 *  密码修改
 *
 *  param:account/password/newPass
 */
#define NET_IF_USER_INFO_PASS_UPDA [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!passUpda.action"]

/**
 *  邮箱更新
 *
 *  param:account/password/mail
 */
#define NET_IF_USER_INFO_MAIL_UPDA [NSString stringWithFormat:NET_IF_DOMAIN,@"user-info!mailUpda.action"]

/**
 *  意见反馈 add by lzc
 *
 *  param:account/password/feedsubj/feedcont
 */
#define NET_IF_USER_INFO_FEED_SUBMIT [NSString stringWithFormat:NET_IF_DOMAIN,@"feedback!feedSend.action"]

// ################## ------- 我的主页模块 ↑ --------
#endif
